﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    /// <summary>
    /// 仓库库存实体类
    /// </summary>
    public class WhInventory
    {
        /// <summary>
        /// 库存ID（主键）
        /// </summary>
        [Key]
        public long InventoryId { get; set; }
        /// <summary>
        /// 批次ID
        /// </summary>
        public long BatchId { get; set; }

        /// <summary>
        /// 仓库ID（外键）
        /// </summary>
        public long WarehouseId { get; set; }
        ///// <summary>
        ///// 库位
        ///// </summary>
        //public long StoraqeLocationId { get; set; }

        /// <summary
        ///关键：添加库位ID字段（外键，关联库位表）
        /// </summary>
        public long StorageLocationId { get; set; }

        /// <summary>
        /// 批次I
        /// 货品ID，对应数据库表中 goods_id 
        /// </summary>
        public long GoodsId { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal UnitPrice { get; set; }

        /// <summary>
        /// 当前库存
        /// </summary>
        public decimal AvailableInventoryQty { get; set; }

        /// <summary>
        /// 总计划数量
        /// </summary>
        public decimal TotalPlannedQuantity { get; set; }
    }
}
